//package com.plian.system.controller.fr.indicatorsvalue;
//
//import com.plian.Tools.base.BaseController;
//import com.plian.Tools.pagedata.PageData;
//import com.plian.system.model.ListResult;
//import com.plian.system.model.ObjResult;
//import com.plian.system.service.fr.bank.impl.BankCurrentHistoryServiceImpl;
//import com.plian.system.service.fr.indicatorsvalue.IIndicatorsReportService;
//import com.plian.system.service.fr.indicatorsvalue.IndicatorsValueService;
//import com.plian.system.service.fr.indicatorswarning.IndicatorsWarningService;
//import com.plian.system.service.fr.organzationmonthratio.OrganzationMonthRatioService;
//import com.plian.system.service.im.IBaseInvestmentExecutionService;
//import com.plian.system.service.sys.orgzation.IOrgService;
//import com.plian.system.vo.fr.indicatorsValue.ReturnEquityDetailVO;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@Slf4j
//@RestController
//@RequestMapping(value = "api/indicators_value")
//public class indicatorsValueController extends BaseController {
//    @Autowired
//    IndicatorsValueService indicatorsValueService;
//    @Autowired
//    IndicatorsWarningService indicatorsWarningService;
//
//    @Autowired
//    BankCurrentHistoryServiceImpl bankCurrentHistoryService;
//
//    @Autowired
//    OrganzationMonthRatioService organzationMonthRatioService;
//
//    @Autowired
//    IIndicatorsReportService indicatorsReportService;
//    @Autowired
//    private IBaseInvestmentExecutionService baseInvestmentExecutionService;
//
//    @Autowired
//    private IOrgService orgService;
//
//    @PostMapping(value = "/graphicReport")
//    public ObjResult graphicReport(@RequestBody PageData pd){
//        return indicatorsValueService.graphicReport(pd);
//    }
//    @PostMapping(value = "/graphicDetailList")
//    public ListResult graphicDetailList(@RequestBody PageData pd){
//        return indicatorsValueService.graphicDetailList(pd);
//    }
//    @PostMapping(value = "/graphicDetailed")
//    public ObjResult graphicDetailed(@RequestBody PageData pd){
//        return indicatorsValueService.graphicDetailed(pd);
//    }
////    @PostMapping(value = "/debtReport")
////    public ListResult debtReport(@RequestBody PageData pd){
////        return indicatorsValueService.debtReport(pd);
////    }
////    @PostMapping(value = "/expressTrend")
////    public ListResult expressTrend(@RequestBody PageData pd){
////        return indicatorsValueService.expressTrend(pd);
////    }
////    @PostMapping(value = "/bulletinIndicators")
////    public ListResult bulletinIndicators(@RequestBody PageData pd){
////        return indicatorsValueService.bulletinIndicators(pd);
////    }
////    @PostMapping(value = "/getBudgetComplete")
////    public ListResult getBudgetComplete(@RequestBody PageData pd){
////        return indicatorsValueService.getBudgetComplete(pd);
////    }
////    @PostMapping(value = "/comprehensiveReport")
////    public ListResult comprehensiveReport(@RequestBody PageData pd){
////        return indicatorsValueService.comprehensiveReport(pd);
////    }
////
////    /**
////     * 集团企业主要指标分析表导出
////     * @param pd
////     * @param response
////     * @throws Exception
////     */
////    @PostMapping(value = "/comprehensiveExport")
////    public void comprehensiveExport(@RequestBody PageData pd, HttpServletResponse response){
////        indicatorsValueService.comprehensiveExport(pd,response);
////    }
////
////    @PostMapping(value = "/businessSectorReport")
////    public ListResult businessSectorReport(@RequestBody PageData pd){
////        return indicatorsValueService.businessSectorReport(pd);
////    }
////    @PostMapping(value = "/getBudgetWarning")
////    public ListResult getBudgetWarning(@RequestBody PageData pd){
////        return indicatorsValueService.getBudgetWarning(pd);
////    }
////    @PostMapping(value = "/getBudgetWarningMonth")
////    public ListResult getBudgetWarningMonth(@RequestBody PageData pd){
////        return indicatorsValueService.getBudgetWarningMonth(pd);
////    }
////    @PostMapping(value = "/getDeficitWarning")
////    public ListResult getDeficitWarning(@RequestBody PageData pd){
////        return indicatorsValueService.getDeficitWarning(pd);
////    }
////    @PostMapping(value = "/getSolvencyDate")
////    public ListResult SolvencyDate(@RequestBody PageData pd){
////        return indicatorsValueService.SolvencyDate(pd);
////    }
////    @PostMapping(value = "/getManagePanel")
////    public ListResult getPanel(@RequestBody PageData pd){
////        return indicatorsValueService.getManagePanel(pd);
////    }
//    @PostMapping(value = "/getIndustryDebt")
//    public ListResult getIndustryDebt(@RequestBody PageData pd){
//        return indicatorsValueService.getIndustryDebt(pd);
//    }
//
////    /**
////     * 国有企业负债监测与预警表（企业）导出
////     * @param pd
////     * @return
////     */
////    @PostMapping(value = "/industryDebtExport")
////    public R industryDebtExport(@RequestBody PageData pd){
////        return indicatorsValueService.industryDebtExport(pd);
////    }
////    @PostMapping(value = "/getBudgetAndJZComplete")
////    public ListResult getBudgetAndJZComplete(@RequestBody PageData pd){
////        return indicatorsValueService.getBudgetAndJZComplete(pd);
////    }
////    @PostMapping(value = "/bulletinIndustryBenchmark")
////    public ObjResult bulletinIndustryBenchmark(@RequestBody PageData pd){
////        return indicatorsValueService.bulletinIndustryBenchmark(pd);
////    }
////    @PostMapping(value = "/getBudgetBarchart")
////    public ListResult getBudgetBarchart(@RequestBody PageData pd){
////        return indicatorsValueService.getBudgetBarchart(pd);
////    }
////    @PostMapping(value = "/getBudgetBucket")
////    public ListResult getBudgetBucket(@RequestBody PageData pd){
////        return indicatorsValueService.getBudgetBucket(pd);
////    }
////    @PostMapping(value = "/getBudgetLinechart")
////    public ListResult getBudgetLinechart(@RequestBody PageData pd){
////        return indicatorsValueService.getBudgetLinechart(pd);
////    }
////    @PostMapping(value = "/getBudgetBarchartWithLastyear")
////    public ListResult getBudgetBarchartWithLastyear(@RequestBody PageData pd){
////        return indicatorsValueService.getBudgetBarchartWithLastyear(pd);
////    }
////    @PostMapping(value = "/getBudgetChart")
////    public ListResult getBudgetChart(@RequestBody PageData pd){
////        return indicatorsValueService.getBudgetChart(pd);
////    }
////
////    @PostMapping(value = "/balanceRateRank")
////    public ListResult balanceRateRank(@RequestBody PageData pd){
////        return indicatorsValueService.balanceRateRank(pd);
////    }
////
////    @PostMapping(value = "/getMainIndicators")
////    public R<MainIndicatorsValueVO> getMainIndicators(@RequestBody PageData pd){
////        return R.data(indicatorsReportService.mainValueReport(pd));
//////        return indicatorsValueService.getMainIndicators(pd);
////    }
////    @PostMapping(value = "/getIndicatorsVal")
////    public ObjResult getIndicatorsVal(@RequestBody PageData pd){
////        try {
////            PageData p = new PageData();
////            PageData groupCodesVal=indicatorsReportService.getGroupCodesVal(pd);
////            groupCodesVal.put("completeProportion",
////                    baseInvestmentExecutionService.completeProportion(orgService.checkIsGzw( pd.getString("orgId")), pd.getString("reportTime"), pd.getString("orgId")).toString());
////            p.putAll(groupCodesVal);
////            R<Map<String,Object>> cdb =bankCurrentHistoryService.inventoryRatio(pd);
////            p.putAll(cdb.getPageData());
////            ListResult grouoIndustryDebtWarnningList = indicatorsWarningService.listMonthPage(pd);
////            if (grouoIndustryDebtWarnningList.getList()!=null){
////                p.put("warnningCount",grouoIndustryDebtWarnningList.getList().size());
////            }else {
////                p.put("warnningCount",0);
////            }
////            ObjResult objResult = new ObjResult(CommonCode.SUCCESS);
////            objResult.setPageData(p);
////            return objResult;
////        }catch (Exception e) {
////            log.error(ExceptionUtils.getFullStackTrace(e));
////            throw new MyRuntimeException();
////        }
////
////    }
////    @PostMapping(value = "/getGrouoIndustryDebtWarnningList")
////    public ListResult getGrouoIndustryDebtWarnningList(@RequestBody PageData pd){
////        return indicatorsValueService.getGrouoIndustryDebtWarnningList(pd);
////    }
//
////    /**
////     * 单个指标 报表
////     * @param pd
////     * @return
////     */
////    @PostMapping(value = "graphicReportByCode")
////    public R graphicReportByCode(@RequestBody PageData pd){
////        IndicatorsValueDTO indicatorsValueDTO = new IndicatorsValueDTO();
////        indicatorsValueDTO.setCode(pd.getString("code"));
////        indicatorsValueDTO.setOrgId(pd.getString("orgId"));
////        indicatorsValueDTO.setCountDate(pd.getString("date"));
////        PageData result = new PageData();
////        result.put("list", indicatorsReportService.singleIndicatorsThrough(indicatorsValueDTO));
////        return R.data(result);
////    }
//
//    /**
//     *  获取净资产收益率 分析表数据
//     * @param pd
//     * @return
//     */
//    @PostMapping(value = "/getUnitReturnEquity")
//    public ListResult<ReturnEquityDetailVO> getUnitReturnEquity(@RequestBody PageData pd){
//        return indicatorsValueService.getUnitReturnEquity(pd);
//    }
//}
